﻿using System;
using System.Collections.Generic;
using System.Data;


namespace EnterpriseLibraryGeneric.DataAccess
{
    interface IDataAccessComponentManager
    {
        int ExecuteNonQuery(string commandToExecute, CommandType commandType);

        int ExecuteNonQuery(string commandToExecute, CommandType commandType, IList<DataAccessParameter> parameters);

        DataSet ExecuteQuery(string commandToExecute, CommandType commandType);

        DataSet ExecuteQuery(string commandToExecute, CommandType commandType, IList<DataAccessParameter> parameters);

        void BeginTransaction();

        void CommitTransaction();

        void RollBackTransaction();
    }
}
